using System.Collections.Generic;
using GameFramework.Reference;
using GameFramework.WebServer;

namespace Server.Proto
{
    public class WebQueryServerListResp : WebServerResp
    {
        /// <summary>
        /// 服务器列表
        /// </summary>
        public List<ServerInfo> ServerInfos { get; set; }
        
        /// <summary>
        /// 已有角色信息
        /// </summary>
        public Dictionary<int, AccountRoleInfo> RoleMap { get; set; }
        
        public override void OnRecycle()
        {
            base.OnRecycle();
            ServerInfos?.RecycleItems();
            RoleMap?.RecycleItems();
        }
    }
}